//该文件存放主要全局变量，全局变量要求存放在此
import ArrayList from '@ohos.util.ArrayList';

//请求地址 127.0.0.1:8080 改为本地服务器地址

//BASE_API:基本的API地址，根据主机的ip地址进行更改
export const BASE_API: string = "http://192.168.110.97:8080/springboot1ma2x"
// export const BASE_API: string= "http://127.0.0.1:8080"

//用户登录请求返回体
export interface LoginResponse {
  code: number;
  token: string;
}


//qichexinxi/autoSort?page=1&limit=8
//列表请求实体
export class  pageList{
  page:number;
  limit:number;
}


//用户信息实体信息
export interface userInformation{

  /* 返回示例
  {
    "code": 0,
    "data": {
        "id": 19,
        "zhanghao": "jack",
        "mima": "123456",
        "xingming": "黄万鑫",
        "nianling": 99,
        "xingbie": "男",
        "shenfenzheng": "440300199808080008",
        "shouji": "13823888888",
        "touxiang": "upload/yonghu_touxiang8.jpg",
        "addtime": "2024-06-08 17:50:25"
    }
}  */
  id:number;
  //账号
  zhanghao:string;
  // 密码
  mima:string;
  // 姓名
  xingming:string;
  //年龄
  nianling:number;
  //性别
  xingbie:string;
  //身份证
  shenfenzheng:string;
  //手机
  shouji:string;
  //头像
  touxiang:string;
}

//汽车信息实体
/*
{
    "code": 0,
    "data": {
        "total": 11,
        "pageSize": 8,
        "totalPage": 2,
        "currPage": 1,
        "list": [
            {
                "id": 48,
                "chepaihao": "车牌号8",
                "cheliangxinghao": "车辆型号8",
                "qicheleibie": "汽车类别8",
                "cheliangpinpai": "车辆品牌8",
                "jiage": 8,
                "yanse": "颜色8",
                "zhuangtai": "已出租",
                "huandangfangshi": "手动挡",
                "cheliangzhaopian": "upload/qichexinxi_cheliangzhaopian8.jpg,upload/qichexinxi_cheliangzhaopian9.jpg,upload/qichexinxi_cheliangzhaopian10.jpg",
                "zuoweishu": 8,
                "qichepailiang": "汽车排量8",
                "qichejiage": 8,
                "chuchangnianfen": "出厂年份8",
                "dengjiriqi": "2023-03-08",
                "qichejianjie": "汽车简介8",
                "guanlizhanghao": "管理账号8",
                "guanlixingming": "管理姓名8",
                "clicktime": "2024-06-09 22:14:42",
                "clicknum": 13,
                "addtime": "2023-03-08 10:33:51"
            },
            {
                "id": 41,
                "chepaihao": "车牌号1",
                "cheliangxinghao": "车辆型号1",
                "qicheleibie": "汽车类别1",
                "cheliangpinpai": "车辆品牌1",
                "jiage": 1,
                "yanse": "颜色1",
                "zhuangtai": "已出租",
                "huandangfangshi": "手动挡",
                "cheliangzhaopian": "upload/qichexinxi_cheliangzhaopian1.jpg,upload/qichexinxi_cheliangzhaopian2.jpg,upload/qichexinxi_cheliangzhaopian3.jpg",
                "zuoweishu": 1,
                "qichepailiang": "汽车排量1",
                "qichejiage": 1,
                "chuchangnianfen": "出厂年份1",
                "dengjiriqi": "2023-03-08",
                "qichejianjie": "<p>汽车简介1</p>",
                "guanlizhanghao": "管理账号1",
                "guanlixingming": "管理姓名1",
                "clicktime": "2024-06-14 16:11:28",
                "clicknum": 12,
                "addtime": "2023-03-08 10:33:51"
            },
 */

export interface car{
  id:number;
  chepaihao:string;
  cheliangxinghao:string;
  qicheleibie:string;
  cheliangpinpai:string;
  jiage:number;
  yanse:string;
  zhuangtai:string;
  huandangfangshi:string;
  cheliangzhaopian:string;
  zuoweishu:number;
  qichepailiang:string;
  qichejianjie:number;
  chuchangnianfen:string;
  dengjiriqi:Date;
  guanlizhanghao:string;
  guanlixingming:string;
  clicknum:number;
  addtime:Date;
}